package creationalPatterns.simplefactory;

public class SimpleFactory {

	
	public AbstractProduct createProduct(String name){
		
		if(name.equals("ProductA")){
			return new ProductA();
		}
		else if(name.equals("ProductB")){
			return new ProductB();
		}
		else{
			return null;
		}
	}
	
	
}
